Tempstr=input("温度值")
if Tempstr[-1]in['F','f']:
    C=(eval(Tempstr[0:-1]))-32/1.8
    print("温度是{:.2f}c".format(C))
elif Tempstr[-1] in ['C','c']:
    F=1.8*eval(Tempstr[0:-1])+32
    print("温度是{:.2f}c".format(F))
else:
    print("wrong")